{% extends 'base.html' %}

{% block container %}
        <div class="col-md-3">
        <ul class="list-group">
            <a href="{% url 'users:setting' %}">
                <li class="list-group-item">基本资料</li>
            </a>
            <a href="{% url 'users:changepass' %}">
                <li class="list-group-item">修改密码</li>
            </a>
        </ul>
    </div>
    <div class="col-md-9">
        <div class="panel">
            <div class="panel-heading">
                修改密码
            </div>
            <div class="panel-body">
                <form action="{% url 'users:changepass' %}" method="post">
                    {% csrf_token %}
                    {{ message }}
                    <div class="form-group">
                        <input id="id_oldpassword" name="oldpassword" placeholder="当前密码" type="password" required=""
                               class="form-control">
                    </div>
                    <div class="form-group">
                        <input id="id_newpassword" name="newpassword" placeholder="新密码" type="password" required=""
                               class="form-control">
                    </div>
                    <div class="form-group">
                        <input id="id_newpassword2" name="newpassword2" placeholder="新密码(重复)" type="password"
                               required=""
                               class="form-control">
                    </div>
                    <button class="btn btn-primary btn-sm">确认修改</button>
                </form>
            </div>

        </div>
    </div>
{% endblock %}
